import request from '@/utils/request'
import { baseUrl } from '@/config/env';




//获取分类列表
export const getList = (page, limit, status, beginDate, endDate, title) => {
  return request({
    url: baseUrl+'/rest/article/list',
    method: 'get',
    params: {
      page,
      limit,
      status,
      beginDate,
      endDate,
      title
    }
  })
}

//删除
export const del = (id) => {
  return request({
    url: `${baseUrl}/rest/article/delete/${id}`,
    method: 'get',
  })
}

//转发
export const forward = (id) => {
  return request({
    url: `${baseUrl}/rest/articleActio/forward/${id}`,
    method: 'get',
  })
}

//收藏
export const collect = (articleId,status) => {
  return request({
    url: `${baseUrl}/rest/articleAction/collect/${articleId}/${status}`,
    method: 'get',
  })
}

